package com.hlx.service.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hlx.entity.user.Ticket;

import java.time.LocalDate;
import java.util.List;

public interface TicketService extends IService<Ticket> {
//    根据火车编号和乘车人编号获取车票信息
    public Integer getIdByTicketName(Integer trainId, Integer personId, LocalDate date);
//    根据乘车人编号获取车票
    public List<Ticket> getTicketByPersonId(Integer personId);
//    根据一堆乘车人编号获取车票
    public Page getTicketByCustomerId(List<Integer> customerId, int currentPage, int pageSize);
//    根据列车车次删除票
    public boolean deleteTicketByTrainId(Integer trainId);
//    根据列车车次得到所有购票人员id
    public List<Integer> getAllTicketIdByTrainNumberId(Integer trainId);
}
